import service from "@/utils/request";

// 菜单列表
export const getMenusListApi = () => {
  return service({
    url: "/menus",
    method: "get",
  });
};
// 菜单详情
export const getMenusInfoApi = (id) => {
  return service({
    url: "/menus" + id,
    method: "get",
  });
};
// 菜单添加
export const addMenusApi = () => {
  return service({
    url: "/menus",
    method: "post",
  });
};
// 菜单删除
export const delMenusApi = (id) => {
  return service({
    url: "/menus" + id,
    method: "DELETE",
  });
};
// 菜单修改
export const editMenusApi = (id) => {
  return service({
    url: "/menus" + id,
    method: "put",
  });
};
